package com.kitty.game.fight.factory;

import com.kitty.game.fight.bean.Fight;
import com.kitty.game.fight.factory.model.TeamPkFight;
import com.kitty.game.team.model.Member;
import com.kitty.game.fight.factory.FightFactory;

import java.util.List;

public class TeamPkFightFactory extends FightFactory {

    @Override
    public Fight create(int mapId, Object... params) {
        int type = (Integer) params[0];
        List<Member> listA = (List<Member>) params[1];
        List<Member> listB = (List<Member>) params[2];
        return new TeamPkFight(type, listA, listB);
    }

}
